<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-JAVA: awtk.TImageBase类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-JAVA
   </div>
   <div id="projectbrief">AWTK JAVA API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>awtk</b></li><li class="navelem"><a class="el" href="classawtk_1_1_t_image_base.html">TImageBase</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="classawtk_1_1_t_image_base-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">awtk.TImageBase类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
类 awtk.TImageBase 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classawtk_1_1_t_image_base.png" usemap="#awtk.TImageBase_map" alt=""/>
  <map id="awtk.TImageBase_map" name="awtk.TImageBase_map">
<area href="classawtk_1_1_t_gif_image.html" alt="awtk.TGifImage" shape="rect" coords="0,112,126,136"/>
<area href="classawtk_1_1_t_image.html" alt="awtk.TImage" shape="rect" coords="136,112,262,136"/>
<area href="classawtk_1_1_t_mutable_image.html" alt="awtk.TMutableImage" shape="rect" coords="272,112,398,136"/>
<area href="classawtk_1_1_t_svg_image.html" alt="awtk.TSvgImage" shape="rect" coords="408,112,534,136"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:ac78bc5b0dc4c2757678ff655f2272bdb"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_base.html#ac78bc5b0dc4c2757678ff655f2272bdb">TImageBase</a> (long nativeObj)</td></tr>
<tr class="separator:ac78bc5b0dc4c2757678ff655f2272bdb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a42ba05d5c25b6d126eb8c0a5d13e6f38"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_base.html#a42ba05d5c25b6d126eb8c0a5d13e6f38">setImage</a> (String name)</td></tr>
<tr class="separator:a42ba05d5c25b6d126eb8c0a5d13e6f38"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1bb18360d2cb33ad4dee29d47153dc3f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_base.html#a1bb18360d2cb33ad4dee29d47153dc3f">setRotation</a> (double rotation)</td></tr>
<tr class="separator:a1bb18360d2cb33ad4dee29d47153dc3f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a55816dbecb3932dcbceabd91cb51d75b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_base.html#a55816dbecb3932dcbceabd91cb51d75b">setScale</a> (double scale_x, double scale_y)</td></tr>
<tr class="separator:a55816dbecb3932dcbceabd91cb51d75b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac92c69653749c808bd90761a7710b07e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_base.html#ac92c69653749c808bd90761a7710b07e">setAnchor</a> (double anchor_x, double anchor_y)</td></tr>
<tr class="separator:ac92c69653749c808bd90761a7710b07e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab682cf3a6feb59d610c0b3e8f2c676a7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_base.html#ab682cf3a6feb59d610c0b3e8f2c676a7">setSelected</a> (boolean selected)</td></tr>
<tr class="separator:ab682cf3a6feb59d610c0b3e8f2c676a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2f3a0855b54e5d4c76b9e8f65b31b631"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_base.html#a2f3a0855b54e5d4c76b9e8f65b31b631">setSelectable</a> (boolean selectable)</td></tr>
<tr class="separator:a2f3a0855b54e5d4c76b9e8f65b31b631"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af11b394ec45b443cc18c156b263bb582"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_base.html#af11b394ec45b443cc18c156b263bb582">setClickable</a> (boolean clickable)</td></tr>
<tr class="separator:af11b394ec45b443cc18c156b263bb582"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5482e6dd3e9037a0ca7b62d15593be95"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_base.html#a5482e6dd3e9037a0ca7b62d15593be95">getImage</a> ()</td></tr>
<tr class="separator:a5482e6dd3e9037a0ca7b62d15593be95"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acae12927e1e5766231c25523336ba0ae"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_base.html#acae12927e1e5766231c25523336ba0ae">getAnchorX</a> ()</td></tr>
<tr class="separator:acae12927e1e5766231c25523336ba0ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad0f4153d3e9abdceb3622f56cd8b4430"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_base.html#ad0f4153d3e9abdceb3622f56cd8b4430">getAnchorY</a> ()</td></tr>
<tr class="separator:ad0f4153d3e9abdceb3622f56cd8b4430"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa5f787b68a90e175658072211bf8c1a4"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_base.html#aa5f787b68a90e175658072211bf8c1a4">getScaleX</a> ()</td></tr>
<tr class="separator:aa5f787b68a90e175658072211bf8c1a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad17d45699496bcb30b92a12fd16fd5d5"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_base.html#ad17d45699496bcb30b92a12fd16fd5d5">getScaleY</a> ()</td></tr>
<tr class="separator:ad17d45699496bcb30b92a12fd16fd5d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae2c15c45ba50a9c0a102a7e350d09f64"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_base.html#ae2c15c45ba50a9c0a102a7e350d09f64">getRotation</a> ()</td></tr>
<tr class="separator:ae2c15c45ba50a9c0a102a7e350d09f64"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d627bcd6b5695f28e6a83f4bc1e9d00"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_base.html#a7d627bcd6b5695f28e6a83f4bc1e9d00">getClickable</a> ()</td></tr>
<tr class="separator:a7d627bcd6b5695f28e6a83f4bc1e9d00"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a691207810dac09912affbbfe59add822"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_base.html#a691207810dac09912affbbfe59add822">getSelectable</a> ()</td></tr>
<tr class="separator:a691207810dac09912affbbfe59add822"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af1f25405eff09676f614976d13a12681"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_base.html#af1f25405eff09676f614976d13a12681">getSelected</a> ()</td></tr>
<tr class="separator:af1f25405eff09676f614976d13a12681"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a7da6ee71e180dfb1d8d20977f972a289"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_t_image_base.html">TImageBase</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_base.html#a7da6ee71e180dfb1d8d20977f972a289">cast</a> (long nativeObj)</td></tr>
<tr class="separator:a7da6ee71e180dfb1d8d20977f972a289"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac34e5f92ee6131cbf242f3b3454fe4fe"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_t_image_base.html">TImageBase</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_base.html#ac34e5f92ee6131cbf242f3b3454fe4fe">cast</a> (TWidget widget)</td></tr>
<tr class="separator:ac34e5f92ee6131cbf242f3b3454fe4fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>图片控件基类。</p>
<p>本类把图片相关控件的公共行为进行抽象，放到一起方便重用。目前已知的具体实现如下图：</p>
<blockquote class="doxtable">
<p>本类是一个抽象类，不能进行实例化。请在应用程序中使用具体的类，如image_t。 </p>
</blockquote>
<p>如果需要显示文件系统中的图片，只需将图片名称换成实际的文件名，并加上"file://"前缀即可。如：</p>
<div class="fragment"><div class="line">*&lt;image draw_type=<span class="stringliteral">&quot;center&quot;</span> image=<span class="stringliteral">&quot;file://./demos/assets/default/raw/images/xx/flag_CN.png&quot;</span> /&gt;</div>
<div class="line">*&lt;gif image=<span class="stringliteral">&quot;file://./demos/assets/default/raw/images/x2/bee.gif&quot;</span> /&gt;</div>
<div class="line">*&lt;svg image=<span class="stringliteral">&quot;file://./demos/assets/default/raw/images/svg/china.bsvg&quot;</span> /&gt;</div>
</div><!-- fragment --> </div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="ac78bc5b0dc4c2757678ff655f2272bdb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac78bc5b0dc4c2757678ff655f2272bdb">&#9670;&nbsp;</a></span>TImageBase()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">awtk.TImageBase.TImageBase </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>nativeObj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>通过nativeObj构造Java对象。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nativeObj</td><td>原生对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对应的Java对象。 </dd></dl>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a7da6ee71e180dfb1d8d20977f972a289"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7da6ee71e180dfb1d8d20977f972a289">&#9670;&nbsp;</a></span>cast() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_t_image_base.html">TImageBase</a> awtk.TImageBase.cast </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>nativeObj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>把nativeObj转换层Java对象。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nativeObj</td><td>原生对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对应的Java对象。 </dd></dl>

<p>被 <a class="el" href="classawtk_1_1_t_image.html#a655c47e3bc5dc0f5582aa0c8354ee6c8">awtk.TImage</a>, <a class="el" href="classawtk_1_1_t_gif_image.html#acfd0ecafe550a6c14d0d4f3b52bb72e5">awtk.TGifImage</a>, <a class="el" href="classawtk_1_1_t_svg_image.html#ad8e76d210a90056ef672f12b556008e4">awtk.TSvgImage</a> , 以及 <a class="el" href="classawtk_1_1_t_mutable_image.html#af6bd236f023082f0b3b29c5897e8c929">awtk.TMutableImage</a> 重载.</p>

</div>
</div>
<a id="ac34e5f92ee6131cbf242f3b3454fe4fe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac34e5f92ee6131cbf242f3b3454fe4fe">&#9670;&nbsp;</a></span>cast() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_t_image_base.html">TImageBase</a> awtk.TImageBase.cast </td>
          <td>(</td>
          <td class="paramtype">TWidget&#160;</td>
          <td class="paramname"><em>widget</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>转换为image_base对象(供脚本语言使用)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">widget</td><td>image_base对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>image_base对象。 </dd></dl>

<p>被 <a class="el" href="classawtk_1_1_t_image.html#a1be9793c136fe31c28b92cf1a488c6d6">awtk.TImage</a>, <a class="el" href="classawtk_1_1_t_svg_image.html#a8820dd82c6d3a3fec8d4a3e421c6649e">awtk.TSvgImage</a> , 以及 <a class="el" href="classawtk_1_1_t_gif_image.html#a0cfbe5b5e877871a8507f2f5dbdca406">awtk.TGifImage</a> 重载.</p>

</div>
</div>
<a id="acae12927e1e5766231c25523336ba0ae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acae12927e1e5766231c25523336ba0ae">&#9670;&nbsp;</a></span>getAnchorX()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double awtk.TImageBase.getAnchorX </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>锚点X(0-1)。0在控件左边，0.5在控件中间，1在控件右边。 </p>

</div>
</div>
<a id="ad0f4153d3e9abdceb3622f56cd8b4430"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad0f4153d3e9abdceb3622f56cd8b4430">&#9670;&nbsp;</a></span>getAnchorY()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double awtk.TImageBase.getAnchorY </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>锚点Y(0-1)。0在控件顶部，0.5在控件中间，1在控件底部。 </p>

</div>
</div>
<a id="a7d627bcd6b5695f28e6a83f4bc1e9d00"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7d627bcd6b5695f28e6a83f4bc1e9d00">&#9670;&nbsp;</a></span>getClickable()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.TImageBase.getClickable </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>点击时，是否触发EVT_CLICK事件。 </p>

</div>
</div>
<a id="a5482e6dd3e9037a0ca7b62d15593be95"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5482e6dd3e9037a0ca7b62d15593be95">&#9670;&nbsp;</a></span>getImage()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String awtk.TImageBase.getImage </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>图片的名称。 </p>

</div>
</div>
<a id="ae2c15c45ba50a9c0a102a7e350d09f64"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae2c15c45ba50a9c0a102a7e350d09f64">&#9670;&nbsp;</a></span>getRotation()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double awtk.TImageBase.getRotation </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>控件的旋转角度(幅度)。 </p>

</div>
</div>
<a id="aa5f787b68a90e175658072211bf8c1a4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa5f787b68a90e175658072211bf8c1a4">&#9670;&nbsp;</a></span>getScaleX()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double awtk.TImageBase.getScaleX </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>控件在X方向上的缩放比例。 </p>

</div>
</div>
<a id="ad17d45699496bcb30b92a12fd16fd5d5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad17d45699496bcb30b92a12fd16fd5d5">&#9670;&nbsp;</a></span>getScaleY()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double awtk.TImageBase.getScaleY </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>控件在Y方向上的缩放比例。 </p>

</div>
</div>
<a id="a691207810dac09912affbbfe59add822"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a691207810dac09912affbbfe59add822">&#9670;&nbsp;</a></span>getSelectable()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.TImageBase.getSelectable </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>是否设置选中状态。 </p>

</div>
</div>
<a id="af1f25405eff09676f614976d13a12681"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af1f25405eff09676f614976d13a12681">&#9670;&nbsp;</a></span>getSelected()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.TImageBase.getSelected </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>当前是否被选中。 </p>

</div>
</div>
<a id="ac92c69653749c808bd90761a7710b07e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac92c69653749c808bd90761a7710b07e">&#9670;&nbsp;</a></span>setAnchor()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TImageBase.setAnchor </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>anchor_x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>anchor_y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置控件的锚点(仅在WITH_VGCANVAS定义时生效)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">anchor_x</td><td>锚点X(0-1)。0在控件左边，0.5在控件中间，1在控件右边。 </td></tr>
    <tr><td class="paramname">anchor_y</td><td>锚点Y(0-1)。0在控件顶部，0.5在控件中间，1在控件底部。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="af11b394ec45b443cc18c156b263bb582"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af11b394ec45b443cc18c156b263bb582">&#9670;&nbsp;</a></span>setClickable()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TImageBase.setClickable </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>clickable</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置控件是否可以被点击。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">clickable</td><td>是否可以被点击。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a42ba05d5c25b6d126eb8c0a5d13e6f38"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a42ba05d5c25b6d126eb8c0a5d13e6f38">&#9670;&nbsp;</a></span>setImage()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TImageBase.setImage </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置控件的图片名称。</p>
<blockquote class="doxtable">
<p>如果需要显示文件系统中的图片，只需将图片名称换成实际的文件名，并加上"file://"前缀即可。 </p>
</blockquote>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>图片名称，该图片必须存在于资源管理器。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

<p>被 <a class="el" href="classawtk_1_1_t_svg_image.html#a9fbd88a410db7d693a5feafa73546a52">awtk.TSvgImage</a> 重载.</p>

</div>
</div>
<a id="a1bb18360d2cb33ad4dee29d47153dc3f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1bb18360d2cb33ad4dee29d47153dc3f">&#9670;&nbsp;</a></span>setRotation()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TImageBase.setRotation </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>rotation</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置控件的旋转角度(仅在WITH_VGCANVAS定义时生效)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">rotation</td><td>旋转角度(幅度)。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a55816dbecb3932dcbceabd91cb51d75b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a55816dbecb3932dcbceabd91cb51d75b">&#9670;&nbsp;</a></span>setScale()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TImageBase.setScale </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>scale_x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>scale_y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置控件的缩放比例(仅在WITH_VGCANVAS定义时生效)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">scale_x</td><td>X方向缩放比例。 </td></tr>
    <tr><td class="paramname">scale_y</td><td>Y方向缩放比例。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a2f3a0855b54e5d4c76b9e8f65b31b631"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2f3a0855b54e5d4c76b9e8f65b31b631">&#9670;&nbsp;</a></span>setSelectable()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TImageBase.setSelectable </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>selectable</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置控件是否可以被选中。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">selectable</td><td>是否可以被选中。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ab682cf3a6feb59d610c0b3e8f2c676a7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab682cf3a6feb59d610c0b3e8f2c676a7">&#9670;&nbsp;</a></span>setSelected()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TImageBase.setSelected </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>selected</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置控件的选中状态。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">selected</td><td>是否被选中。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/TImageBase.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
